import { FormSchema } from '/@/components/Table';
export const columns = [
  {
    title: '合同类型编码',
    dataIndex: 'contractTypeCode',
    width: 150,
  },
  {
    title: '合同类型名称',
    dataIndex: 'contractTypeName',
    width: 300,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 300,
  },
];
export const searchFormSchema: FormSchema[] = [
  {
    field: 'contractTypeCode',
    label: '类型编码',
    
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    field: 'contractTypeName',
    label: '类型名称',
    component: 'Input',
    colProps: { span: 6 },
  },
];
/**
 * 角色用户搜索form
 */
export const searchUserFormSchema: FormSchema[] = [
  {
    field: 'username',
    label: '用户账号',
    component: 'Input',
    colProps: { span: 12 },
    labelWidth: 74,
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: '',
    component: 'Input',
    show: false,
  },
  {
    field: 'contractTypeCode',
    label: '合同类型编码',
    required: true,
    component: 'Input',
  },
  {
    label: '合同类型名称',
    field: 'contractTypeName',
    required: true,
    component: 'InputTextArea',
  },
];

export const formDescSchema = [
  {
    field: 'roleName',
    label: '角色名称',
  },
  {
    field: 'roleCode',
    label: '角色编码',
  },
  {
    label: '备注',
    field: 'description',
  },
];

export const modelFormSchema: FormSchema[] = [
  {
    label: 'APIkey',
    field: 'apiKey',
    component: 'Input',
    required: true,
    helpMessage: '请输入APIkey',
  },
];